//
//  OrderCollectionViewCell.m
//  Zhiche-Carriage
//
//  Created by LeeBruce on 16/7/6.
//  Copyright © 2016年 LeeBruce. All rights reserved.
//

#import "OrderCollectionViewCell.h"

@implementation OrderCollectionViewCell
-(id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        [self initSubViews];
        
    }
    
    return self;
}


-(void)initSubViews

{

    self.ImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 70 * kWidth, 70 * kHeight)];
    self.ImageView.layer.cornerRadius = 5;
    self.ImageView.layer.masksToBounds = YES;
    self.ImageView.userInteractionEnabled = YES;
    [self.contentView addSubview:self.ImageView];
    
    self.titleL = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMidX(self.ImageView.frame) - 45 * kWidth, CGRectGetMaxY(self.ImageView.frame), 90 * kWidth, 20 * kHeight)];
    self.titleL.textAlignment = NSTextAlignmentCenter;
    self.titleL.textColor = fontGrayColor;
    self.titleL.font = Font(13);
    
    [self.contentView addSubview:self.titleL];
    
    
    
//    self.label = [[UILabel alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.ImageView.frame), self.contentView.frame.size.width, 20)];
//    [self.contentView addSubview:self.label];
//    
//    self.label.textAlignment = NSTextAlignmentCenter;
//    self.label.backgroundColor = [UIColor clearColor];
//    self.label.font = Font(11);
}


@end
